﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework
{
    /// <summary>
    /// 身份验证服务
    /// </summary>
    public interface IAuthenticationService
    {
        /// <summary>
        /// 直接刷卡登录
        /// </summary>
        /// <param name="cardNumberCipher"></param>
        bool SignIn(byte[] cardNumberCipher);

        /// <summary>
        /// 帐号密码登录
        /// </summary>
        /// <param name="hotelOrgId"></param>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        bool SignIn(string hotelOrgId, string userName, string password);

        /// <summary>
        /// 帐号密码登录
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        bool SignIn(string userName, string password);

        /// <summary>
        /// 注销
        /// </summary>
        void SignOut();
    }
}
